<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("title", "项目详情");
	//request.setAttribute("modelConfigPath", "project");
%>
<style type="text/css">
.form-detailed .form-group {
	margin-bottom: 6px !important;
	padding-bottom: 6px !important;3
}
</style>
<t:panel cssClass="panel-flat border-top-xlg border-top-primary"
	customBody="true" customHead="true">
	<t:panelHead title="项目管理"></t:panelHead>
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="project" id="first"
			action="/admin/project/saveForS" ajaxPost="true"
			onSuccess="onSuccess">
			<div class="hide">
				<t:hidden path="projectId" />

			</div>
			<t:formgroup>
				<t:label path="projectName" cssClass="col-sm-2" />
				<t:input path="projectName" colClass="col-sm-4" />
				<t:label path="projectLeaderId" cssClass="col-sm-2" />
				<t:select2 path="projectLeaderId" colClass="col-sm-4" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="projectStartDate" cssClass="col-sm-2" />
				<t:date path="projectStartDate" data-min="[]" colClass="col-sm-4" />
				<t:label path="projectFinishDate" cssClass="col-sm-2" />
				<t:date path="projectFinishDate" data-min="[]" colClass="col-sm-4" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="personIds" cssClass="col-sm-2"  />
				<t:select2 path="personIds" multiple="true" colClass="col-sm-10" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="projectComment" cssClass="col-sm-2" />
				<t:textarea path="projectComment" colClass="col-sm-10" />
			</t:formgroup>	
			<t:formgroup>
				<t:label path="templateId" style="display:none" cssClass="col-sm-2" />
				<t:input path="templateId" id="value" type="hidden" colClass="col-sm-4" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">

function saveData() {
	if (!$("#first").valid()) {
		return;
	}
	$("#first").submit();
}

function getValue(){
	$("#value").val(templateId);
}
	
</script>
